package cn.wenzy.aurora.framework.support.validation.annotation;

import cn.wenzy.aurora.framework.support.validation.annotation.impl.RuleValidationImpl;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {RuleValidationImpl.class})
@Target({ElementType.FIELD})
public @interface RuleValidation {
    String ruleCode();

    String message() default "";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
